﻿using Abp.Domain.Entities.Auditing;
using System;
using System.ComponentModel.DataAnnotations.Schema;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using Abp.Domain.Entities;

namespace Akso.Entities
{
    /// <summary>
    /// 教室实体，带审计和软删除。
    /// </summary>
    [Table("Basic_Classrooms")] //对应数据库的表名，建议规则：模块名+实体名。
    public class ClassroomEntity: FullAuditedEntity<Guid>, IMustHaveTenant
    {
        public const int MaxNameLength = 50;
        public const int MaxRemarkLength = 500;
        public int TenantId { get; set; }
        /// <summary>
        /// 教室名称
        /// </summary>
        [Required]//字段必填
        [Column("ClassroomName")]//数据库的字段名，可以与实体字段不同。
        [MaxLength(MaxNameLength)]
        public virtual string ClassroomName { get; set; }
        /// <summary>
        /// 容纳人数
        /// </summary>
        public virtual int Galleryful { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [MaxLength(MaxRemarkLength)]
        public virtual string Remark { get; set; }
    }
}
